import Layout from '@/layouts';
export const asyncRoutes = (permissionRouters=[],homeRoute)=>[
    {
        path: '/',
        component: Layout,
        redirect: homeRoute,
        hidden: true,
        children: [
            ...permissionRouters,
        ]
    },
    {
        path: '/setting',
        component: Layout,
        hidden: true,
        redirect:'/setting/index',
        children:[
            {
                name: 'setting',
                path: '/setting/index',
                component: () => import(/* webpackChunkName: 'setting' */'@/views/system/setting/index'),
                meta: { title: '个人设置', icon: 'user' },
            },
        ]
    },
    { path: '*', redirect: '/404', hidden: true }
];